package com.sinheldrin.musicplayer.music
{
	import flash.events.EventDispatcher;
	
	import mx.collections.ArrayCollection;

	public class MusicCollection extends EventDispatcher
	{
		public function MusicCollection()
		{
			_musics = new ArrayCollection();
		}
		
		private var _musics:ArrayCollection = null;
		[Bindable(event="musicsChange")]
		public function get musics():ArrayCollection
		{
			return _musics;
		}
		
		public function addMusic (music:Music):void
		{
			_musics.addItem(music);
		}
	}
}